home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
misc
/
tritonrexx376.lha
/
TritonRexx
/
Rexx
/
Cycle.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-09-16
|
2KB
|
77 lines
/* Cycle.rexx */
IF ~SHOW('LIBRARIES','tritonrexx.library') THEN DO
IF ~ADDLIB('tritonrexx.library',10,-30,0) THEN DO
SAY 'Kann die <tritonrexx.library> nicht öffnen!'
EXIT(10)
END
END
cyclelist.0 = 7
cyclelist.1 = 'Montag'
cyclelist.2 = 'Dienstag'
cyclelist.3 = 'Mittwoch'
cyclelist.4 = 'Donnerstag'
cyclelist.5 = 'Freitag'
cyclelist.6 = 'Samstag'
cyclelist.7 = 'Sonntag'
windowtags = WindowID(1),
WindowTitle('Cycle'),
'VertGroupA',
'Space',
'HorizGroupAC',
'Space',
TextID("_Cycle",7),
'Space',
CycleGadget('cyclelist',0,7),
'Space',
'EndGroup',
'Space',
'EndGroup',
'EndProject'
app = TR_CREATEAPP('TRCA_Name Cycle')
IF app ~= '00000000'x THEN DO
window = TR_OPENPROJECT(app,windowtags)
IF window ~= '00000000'x THEN DO
ende = 0
DO WHILE ende ~= 1
CALL TR_WAIT(app,'')
DO WHILE TR_HANDLEMSG(app,'event')
IF event.trm_class = 'TRMS_NEWVALUE' THEN DO
SELECT
WHEN event.trm_id = 7 THEN DO
nummer = event.trm_data+1
SAY 'Ausgewählt:' nummer '=' cyclelist.nummer
END
OTHERWISE
NOP
END
END
IF event.trm_class = 'TRMS_CLOSEWINDOW' THEN DO
nummer = TR_GETATTRIBUTE(window,7,'TRAT_Value')+1
SAY 'Ausgewählt war:' nummer '=' cyclelist.nummer
ende = 1
END
END
END
CALL TR_CLOSEPROJECT(window)
END
CALL TR_DELETEAPP(app)
END
EXIT(0)